package com.hm.ipay.service;

import com.hm.ipay.ServiceException;
import com.hm.ipay.domain.result.ResponseData;
import com.hm.ipay.domain.result.ResponseDataList;
import com.hm.ipay.entity.UserAccount;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;


public interface AccountService {
    ResponseData userAccountInfo(Long id);
    ResponseData tranRecordList(Long userId, Integer transactionType);
    ResponseDataList bgTranRecordList(Integer limit, Integer offset, String userName, Integer transactionType);
    ResponseDataList userAccountList(Integer limit, Integer offset, String userName, String tel);
    ResponseData frozenAccount(Long userId);
    ResponseData accountThaw(Long userId);
    ResponseData accountTotal();
    ResponseData accountRelationship(Long userId);
    ResponseData setAccountInfo(UserAccount account);

    Map<String, Object> uploadPicture(MultipartFile file, String dirType) throws ServiceException;
    ResponseData setAccountProfile(Long userId, String profile);

}
